package com.admin.rxandroidtest;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.method.ScrollingMovementMethod;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;

import com.admin.rxandroidtest.retrofit.RetrofitServer;

import java.util.Arrays;
import java.util.List;

import io.reactivex.disposables.Disposable;
import retrofit2.Call;

public abstract class BaseViewActivity extends AppCompatActivity {

    public TextView tv1;
    public TextView tvr;
    public Button btn;
    public ProgressBar pb1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);

        tv1=(TextView)findViewById(R.id.tv_1);
        tvr=(TextView)findViewById(R.id.tv_r);
        btn=(Button)findViewById(R.id.btn_add);
        pb1=(ProgressBar)findViewById(R.id.pb_1);

        tvr.setMovementMethod(ScrollingMovementMethod.getInstance());
        initEvent();
    }

    public abstract void initEvent();

}
